#include "level1.h"

Level1::Level1(QWidget *parent)
    : LevelScene(QPixmap(RESOURCE_DIR + "/Kit_Map_1.png"),QImage(RESOURCE_DIR + "/Kit_RoadMask.png"), parent)
{
    // Add the tools
    addTool(QString("Tool 1"),RESOURCE_DIR + "/Buttons/Kit_Pills.png");
    addTool(QString("Tool 2"),RESOURCE_DIR + "/Buttons/Kit_Pills.png");
    addTool(QString("Tool 3"), RESOURCE_DIR + "/Buttons/Kit_Pills.png");

    // Add buildings
    /*
    addBuilding(50,80,QPixmap(RESOURCE_DIR + "/Kit_Building.png"));
    addBuilding(1400,300,QPixmap(RESOURCE_DIR + "/Kit_Building.png"));
    addBuilding(500,900,QPixmap(RESOURCE_DIR + "/Kit_Building.png"));
    addBuilding(800,450,QPixmap(RESOURCE_DIR + "/Kit_Building.png"));
    */

    // create a test person
    addBuilding(QPoint(3,6),50,80,QPixmap(RESOURCE_DIR + "/Kit_Building.png"));
    addBuilding(QPoint(72,9),1500,150,QPixmap(RESOURCE_DIR + "/Kit_Building.png"));
    addBuilding(QPoint(45,49),950,875,QPixmap(RESOURCE_DIR + "/Kit_Building.png"));

    for (int count = 0; count<100; count ++)
    {
        addPerson((3*20)+10,(6*20)+10,QPixmap(RESOURCE_DIR + "/Kit_Person.png"));
        setBuilding(people.last(),buildings.at(rand() % buildings.length()));
    }

}
